<?php echo getModuleDemo($item['id'], 1, $item['id'], 11, 1, $buttons_params, $buttons_params); ?>
<input type="hidden" name="action" value="editor" />
<input type="hidden" name="item" value="<?php echo $item['id']; ?>" />
<fieldset>
	<dl>
		<dt>Name:</dt>
		<dd>
			<input name="name" type="text" value="<?php echo $item['name']; ?>" style="width:30%">
			&nbsp;<?php echo $NameStatus; ?>
			<input type="submit" value="Save" style="padding-left:20px; padding-right:10px;  background-image: url('../images/system/save.gif'); border:1px solid #DDDDDD; height:20px;" class="buttons">
            
		</dd>
	</dl>
    <dl>
		<dt>Type:</dt>
		<dd>
			<select name="type" onchange="submit();">
				<option value="0" <?php if($item['type'] == 0) { echo 'selected'; } ?>>CSS Wrapper</option>
                <option value="1" <?php if($item['type'] == 1) { echo 'selected'; } ?>>CSS-TB-LR-Image Border</option>
                <option value="2" <?php if($item['type'] == 2) { echo 'selected'; } ?>>CSS-RoundCorner-TL-TR-BL-BR Border</option>
                <option value="3" <?php if($item['type'] == 3) { echo 'selected'; } ?>>CSS-RoundCorner-TL-TC-TR-BL-BC-BR-ML-MC-MR</option>
			</select>
		</dd>
	</dl>
	<dl>
		<dt>Width:</dt>
		<dd>
			<select name="width">
				<?php 
					$i=1;
					while($i <= 200)
					{
						if ($i == $item['width'])
						{
							echo '<option value="'.$i.'" selected>'.$i.' px</option>';
						}
						else
						{
							echo '<option value="'.$i.'">'.$i.' px</option>';
						}
						$i ++;
					}
				?>
			</select>
		</dd>
	</dl>
    <dl>
		<dt>Background: <?php echo $item['image_bg']; ?></dt>
		<dd>
			<input id="image_bg" name="image_bg" type="file" ></input>
			<?php 
				if($item['image_bg'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_bg']); 
					$fp = fopen(BORDERS_PATH.$item['image_bg'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_bg'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_bg" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <?php if($item['type'] > 0) : ?>
	<dl>
		<dt>Top: <?php echo $item['image_top']; ?></dt>
		<dd>
			<input id="image_top" name="image_top" type="file" ></input>
			<?php 
				if($item['image_top'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_top']); 
					$fp = fopen(BORDERS_PATH.$item['image_top'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						$item['image_top_h'] = $size[1];
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_top'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_top" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <?php if($item['type'] > 1) : ?>
    <dl>
		<dt>Top Left: <?php echo $item['image_top_l']; ?></dt>
		<dd>
			<input id="image_top_l" name="image_top_l" type="file" ></input>
			<?php 
				if($item['image_top_l'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_top_l']); 
					$fp = fopen(BORDERS_PATH.$item['image_top_l'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						
						if ($size[0] > $item['image_top_l_w']) 
						{ $item['image_top_l_w'] = $size[0];}
						
						if ($size[1] > $item['image_top_h']) 
						{ $item['image_top_h'] = $size[1];}
						
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_top_l'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_top_l" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <dl>
		<dt>Top Right: <?php echo $item['image_top_r']; ?></dt>
		<dd>
			<input id="image_top_r" name="image_top_r" type="file" ></input>
			<?php 
				if($item['image_top_r'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_top_r']); 
					$fp = fopen(BORDERS_PATH.$item['image_top_r'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						
						if ($size[0] > $item['image_top_r_w']) 
						{ $item['image_top_r_w'] = $size[0];}
						
						if ($size[1] > $item['image_top_h']) 
						{ $item['image_top_h'] = $size[1];}
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_top_r'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_top_r" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <?php endif; ?>
    <dl>
		<dt>Mid Left: <?php echo $item['image_mid_l']; ?></dt>
		<dd>
			<input id="image_mid_l" name="image_mid_l" type="file" ></input>
			<?php 
				if($item['image_mid_l'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_mid_l']); 
					$fp = fopen(BORDERS_PATH.$item['image_mid_l'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						if ($size[0] > $item['image_mid_l_w']) 
						{ $item['image_mid_l_w'] = $size[0];}
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_mid_l'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_mid_l" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <dl>
		<dt>Mid Right: <?php echo $item['image_mid_r']; ?></dt>
		<dd>
			<input id="image_mid_r" name="image_mid_r" type="file" ></input>
			<?php 
				if($item['image_mid_r'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_mid_r']); 
					$fp = fopen(BORDERS_PATH.$item['image_mid_r'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						if ($size[0] > $item['image_mid_r_w']) 
						{ $item['image_mid_r_w'] = $size[0];}
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_mid_r'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_mid_r" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <dl>
		<dt>Bottom: <?php echo $item['image_bot']; ?></dt>
		<dd>
			<input id="image_bot" name="image_bot" type="file" ></input>
			<?php 
				if($item['image_bot'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_bot']); 
					$fp = fopen(BORDERS_PATH.$item['image_bot'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						$item['image_bot_h'] = $size[1];
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_bot'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_bot" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <?php if($item['type'] > 1) : ?>
    <dl>
		<dt>Bottom Left: <?php echo $item['image_bot_l']; ?></dt>
		<dd>
			<input id="image_bot_l" name="image_bot_l" type="file" ></input>
			<?php 
				if($item['image_bot_l'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_bot_l']); 
					$fp = fopen(BORDERS_PATH.$item['image_bot_l'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						
						if ($size[0] > $item['image_bot_l_w']) 
						{ $item['image_bot_l_w'] = $size[0];}
						
						if ($size[1] > $item['image_bot_h']) 
						{ $item['image_bot_h'] = $size[1];}
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_bot_l'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_bot_l" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <dl>
		<dt>Bottom Right: <?php echo $item['image_bot_r']; ?></dt>
		<dd>
			<input id="image_bot_r" name="image_bot_r" type="file" ></input>
			<?php 
				if($item['image_bot_r'] != "")
				{
					$size = getimagesize(BORDERS_PATH.$item['image_bot_r']); 
					$fp = fopen(BORDERS_PATH.$item['image_bot_r'], "rb");
					if ($size && $fp) 
					{
						echo $size[0]." x ";
						echo $size[1]." px ";
						
						if ($size[0] > $item['image_bot_r_w']) 
						{ $item['image_bot_r_w'] = $size[0];}
						
						if ($size[1] > $item['image_bot_h']) 
						{ $item['image_bot_h'] = $size[1];}
					}
				}
				echo $lImageStatus;
			?>
			<?php if($item['image_bot_r'] != "") { ?>
            	<input class="inp_image" type="image" name="delete_image_bot_r" src="../images/system/trash_25.gif" value="0" onclick="this.value=1; edit_form.submit();" />
			<?php } ?>
		</dd>
	</dl>
    <?php endif; ?>
    <?php endif; ?>
	<dl>
		<dt>Edit Border Style</dt>
		<dd>&nbsp;</dd>
	</dl>
    <table cellpadding="0" cellspacing="0" border="1" style="cursor:pointer; width:600px; background-color:#EEEEEE; height:30px; font-size:12px;">
        <tr>
            <?php if($item['type'] > 1) : ?>
            <td id="board_tl" style="width:10%; white-space:nowrap; padding:2px;" onclick="setVisible('tl'); toggleClassName(this.id, 'board_active');">Top Left Corner</td>
            <?php endif; ?>
            <?php if($item['type'] < 2) { $colspan=3; } ?>
            <td colspan="<?php echo  $colspan; ?>" id="board_top" align="center" onclick="setVisible('top_mid'); toggleClassName(this.id, 'board_active');" style="width:80%; border-right:1px solid #CCCCCC;">Top Border</td>
            <?php if($item['type'] > 1) : ?>
            <td id="board_tr" style="width:10%; white-space:nowrap; padding:2px;" onclick="setVisible('tr'); toggleClassName(this.id, 'board_active');">Top Right Corner</td>
            <?php endif; ?>
        </tr>
        <tr>
        	<?php if($item['type'] > 0) : ?>
            <td id="board_ml" style="width:10%; height:50px; white-space:nowrap; padding:2px;" onclick="setVisible('mid_l'); toggleClassName(this.id, 'board_active');">Left Border Image</td>
            <?php endif; ?>
            <td id="board_core" align="center" onclick="setVisible('core'); toggleClassName(this.id, 'board_active');" style="width:80%; border-right:1px solid #CCCCCC;">Mid Area</td>
            <?php if($item['type'] > 0) : ?>
            <td id="board_mr" style="width:10%; white-space:nowrap; padding:2px;" onclick="setVisible('mid_r'); toggleClassName(this.id, 'board_active');">Right Border Image</td>
            <?php endif; ?>
        </tr>
        <tr>
            <?php if($item['type'] > 1) : ?>
            <td id="board_bl" style="width:10%; white-space:nowrap; padding:2px;" onclick="setVisible('bl'); toggleClassName(this.id, 'board_active');">Bottom Left Corner</td>
            <?php endif; ?>
            <td colspan="<?php echo  $colspan; ?>" id="board_bot" align="center" onclick="setVisible('bot_mid'); toggleClassName(this.id, 'board_active');" style="border-right:1px solid #CCCCCC;">Bottom Border</td>
            <?php if($item['type'] > 1) : ?>
            <td id="board_br" style="width:10%; white-space:nowrap; padding:2px;" onclick="setVisible('br'); toggleClassName(this.id, 'board_active');">Bottom Right Corner</td>
            <?php endif; ?>
        </tr>
    </table>
	<?php 
	if($item['type'] > 1)
	{
		$style['tl'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.tl_'.$item['id']);
		if(($style['tl'] == '') && (trim($item['image_top_l']) != ''))
		{ 
			$style['tl']  = 'background:transparent url(images/'.$item['image_top_l'].') no-repeat scroll top left; ';
			$style['tl'] .= 'width:100%; ';
			$style['tl'] .= 'float:left; ';
			$style['tl'] .= 'clear:left; ';
			$style['tl'] .= 'margin:0px; ';
			$style['tl'] .= 'padding:0px; ';
		}
	}
	else
	{ $style['tl'] = ''; }
    ?>
    <dl id="tl" style="display:none;">
        <dt>div.rc_border div.border_<?php echo $item['id']; ?> div.tl_<?php echo $item['id']; ?></dt>
        <dd>
            <textarea name="tl" style="width:70%; height:120px;"><?php echo $style['tl']; ?></textarea>
        </dd>
    </dl>
    
    <?php 
	if($item['type'] > 1)
	{
		$style['tr'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.tr_'.$item['id']);
		if(($style['tr'] == '') && (trim($item['image_top_r']) != ''))
		{ 
			$style['tr']  = 'background:transparent url(images/'.$item['image_top_r'].') no-repeat scroll top right; ';
			if($style['tl'] == '')
			{
				$style['tr'] .= 'width:100%; ';
				$style['tr'] .= 'float:left; ';
				$style['tr'] .= 'clear:left; ';
				$style['tr'] .= 'margin:0px; ';
				$style['tr'] .= 'padding:0px;';
			}
		}
	}
	else
	{ $style['tr'] = ''; }
	?>
    <dl id="tr" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.tr_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="tr" style="width:70%; height:120px;"><?php echo $style['tr']; ?></textarea>
		</dd>
	</dl>
    <?php 
	$style['top'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.top_'.$item['id']);
	if($style['top'] == '')
	{ 
		if(trim($item['image_top']) != '')
		{
			$style['top']  = 'background:transparent url(images/'.$item['image_top'].') repeat-x scroll top left; ';
			$style['top'] .= 'height:'.$item['image_top_h'].'px; ';
		}
		else
		{
			if((trim($item['image_top_l']) != '') || (trim($item['image_top_r']) != ''))
			{ $style['top'] .= 'height:'.$item['image_top_h'].'px; '; }
		}
		
		if(($style['tl'] == '') && ($style['tr'] == ''))
		{
			$style['top'] .= 'width:100%; ';
			$style['top'] .= 'float:left; ';
			$style['top'] .= 'clear:left; ';
			$style['top'] .= 'margin:0px; ';
			$style['top'] .= 'padding:0px;';
			
		}
		if(trim($item['image_top_l']) != '') 
		{ $style['top'] .= 'margin-left:'.$item['image_top_l_w'].'px; ';  }
		if(trim($item['image_top_r']) != '')
		{ $style['top'] .= 'margin-right:'.$item['image_top_r_w'].'px; ';  }
	}
	?>
	<dl id="top_mid" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.top_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="top" style="width:70%; height:120px;"><?php echo $style['top']; ?></textarea>
		</dd>
	</dl>
    
    <?php 
	if($item['type'] > 1)
	{
		$style['bl'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.bl_'.$item['id']);
		if(($style['bl'] == '') && (trim($item['image_bot_l']) != ''))
		{ 
			$style['bl']  = 'background:transparent url(images/'.$item['image_bot_l'].') no-repeat scroll bottom left; ';
			$style['bl'] .= 'width:100%; ';
			$style['bl'] .= 'float:left; ';
			$style['bl'] .= 'clear:left; ';
			$style['bl'] .= 'margin:0px; ';
			$style['bl'] .= 'padding:0px;';
		}
	}
	else
	{ $style['bl'] = ''; }
    ?>
    <dl id="bl" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.bl_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="bl" style="width:70%; height:120px;"><?php echo $style['bl']; ?></textarea>
		</dd>
	</dl>
    
    <?php 
	if($item['type'] > 1)
	{
		$style['br'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.br_'.$item['id']);
		if(($style['br'] == '') && (trim($item['image_bot_r']) != ''))
		{ 
			$style['br']  = 'background:transparent url(images/'.$item['image_bot_r'].') no-repeat scroll bottom right; ';
			if($style['bl'] == '')
			{
				$style['br'] .= 'width:100%; ';
				$style['br'] .= 'float:left; ';
				$style['br'] .= 'clear:left; ';
				$style['br'] .= 'margin:0px; ';
				$style['br'] .= 'padding:0px;';
			}
		}
	}
	else
	{ $style['br'] = ''; }
	?>
    <dl id="br" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.br_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="br" style="width:70%; height:120px;"><?php echo $style['br']; ?></textarea>
		</dd>
	</dl>
    <?php 
	$style['bot'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.bot_'.$item['id']);
	if($style['bot'] == '')
	{ 
		if(trim($item['image_bot']) != '')
		{
			$style['bot']  = 'background:transparent url(images/'.$item['image_bot'].') repeat-x scroll bottom left; ';
			$style['bot'] .= 'height:'.$item['image_bot_h'].'px; '; 
		}
		else
		{
			if((trim($item['image_bot_l']) != '') || (trim($item['image_bot_r']) != ''))
			{ $style['bot'] .= 'height:'.$item['image_bot_h'].'px; '; }
		}
		
		if(($style['bl'] == '') && ($style['br'] == ''))
		{
			$style['bot'] .= 'width:100%; ';
			$style['bot'] .= 'float:left; ';
			$style['bot'] .= 'clear:left; ';
			$style['bot'] .= 'margin:0px; ';
			$style['bot'] .= 'padding:0px;';
		}
		
		if(trim($item['image_bot_l']) != '')
		{ $style['bot'] .= 'margin-left:'.$item['image_bot_l_w'].'px; ';  }
		if(trim($item['image_bot_r']) != '')
		{ $style['bot'] .= 'margin-right:'.$item['image_bot_r_w'].'px; ';  }
	}
	?>
	<dl id="bot_mid" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.bot_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="bot" style="width:70%; height:120px;"><?php echo $style['bot']; ?></textarea>
		</dd>
	</dl>
    
    <?php 
	if($item['type'] > 0)
	{
		$style['mid_l'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.mid_l_'.$item['id']);
		if(($style['mid_l'] == '') && (trim($item['image_mid_l']) != ''))
		{ 
			$style['mid_l']  = 'background:transparent url(images/'.$item['image_mid_l'].') repeat-y scroll center left;'; 
			$style['mid_l'] .= 'width:100%; ';
			$style['mid_l'] .= 'float:left; ';
			$style['mid_l'] .= 'clear:left; ';
			$style['mid_l'] .= 'margin:0px; ';
			$style['mid_l'] .= 'padding:0px;';
		}
	}
	else
	{ $style['mid_l'] = ''; }
	?>
	<dl id="mid_l" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.mid_l_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="mid_l" style="width:70%; height:120px;"><?php echo $style['mid_l']; ?></textarea>
		</dd>
	</dl>
    
    <?php 
	if($item['type'] > 0)
	{
		$style['mid_r'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.mid_r_'.$item['id']);
		if(($style['mid_r'] == '') && (trim($item['image_mid_r']) != ''))
		{ 
			$style['mid_r']  = 'background:transparent url(images/'.$item['image_mid_r'].') repeat-y scroll center right;'; 
			$style['mid_r'] .= 'width:100%; ';
			$style['mid_r'] .= 'float:left; ';
		}
	}
	else
	{ $style['mid_r'] = ''; }
	?>
	<dl id="mid_r" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.mid_r_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="mid_r" style="width:70%; height:120px;"><?php echo $style['mid_r']; ?></textarea>
		</dd>
	</dl>
    
    <?php 
	$style['core'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].' div.core_'.$item['id']);
	if(($style['core'] == '') && (trim($item['image_mid_l']) != ''))
	{ 
		$style['core'] = 'float:left; ';
		if(trim($item['image_mid_l_w']) != '')
		{ $style['core'] .= 'margin-left:'.$item['image_mid_l_w'].'px; ';  }
		if(trim($item['image_bot_r']) != '')
		{ $style['core'] .= 'margin-right:'.$item['image_mid_r_w'].'px; ';  }
		
	}
	
	?>
	<dl id="core" style="display:none;">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?> div.core_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="core" style="width:70%; height:120px;"><?php echo $style['core']; ?></textarea>
		</dd>
	</dl>
    
    
    <?php 
	$style['border'] = getStyleCss(6, $item['id'], 'div.rc_border div.border_'.$item['id'].'');
	?>
	<dl id="border">
		<dt>div.rc_border div.border_<?php echo $item['id']; ?></dt>
		<dd>
			<textarea name="border" style="width:70%; height:120px;"><?php echo $style['border']; ?></textarea>
		</dd>
	</dl>
    
    
    
	<dl>
		<dt>Header Categories:</dt>
		<dd>
			<select size="10" name="hfb_cats" style="width:20%;">
				<?php 
				if($hfbcats)
				{
					foreach($hfbcats as $hfbcat)
					{
						echo '<option ondblclick="edit_form.add_to_cat.value=this.value; edit_form.submit();" value="'.$hfbcat['id'].'">'.$hfbcat['title'].'</option>';
					}
				}
				?>
			</select>
			<select size="10" name="hfb_in_cats" style="width:20%;">
				<?php 
				if($incats)
				{
					foreach($incats as $incat)
					{
						echo '<option ondblclick="edit_form.rem_from_cat.value=this.value; edit_form.submit();" value="'.$incat['id'].'">'.$incat['title'].'</option>';
					}
				}
				?>
			</select>
			<input type="hidden" id="add_to_cat" name="add_to_cat" value="0" />
			<input type="hidden" id="rem_from_cat" name="rem_from_cat" value="0" />
		</dd>
	</dl>
</fieldset>